package com.woniu.moudle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.sql.Blob;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author w
 * @since 2021-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UndoLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分支事务ID
     */
    private Long branchId;

    /**
     * 全局事务ID
     */
    private String xid;

    private String context;

    /**
     * 回滚信息
     */
    private Blob rollbackInfo;

    /**
     * log状态
     */
    private Integer logStatus;

    private LocalDateTime logCreated;

    private LocalDateTime logModified;

    /**
     * 扩展信息
     */
    private String ext;


}
